/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package FourShTests;

import Rout.*;
import org.testng.annotations.*;

public class Shared4Arch {

    private GoBefore browser= new GoBefore();

    @BeforeMethod
    public void setUp() throws Exception {
        
        System.out.println("\n Run test: " + getClass().getSimpleName());        
        browser.setXpFilename("//*[@id=\"fstickcontent\"]/div[7]/div/div/div[2]/h1");
        browser.setCurURL("http://www.4shared.com/photo/jIP-_j8sce/Test_file.html");
        browser.setLpurl("software.maxiget.com");
        browser.setRepDir(getClass().getSimpleName());        
        
    }

    @Test
    public void Arch() throws Exception {

        browser.setCssButton("#epom-e36fb74d38fcd323fd1ac5556836ff3e > a");
        browser.setClButton("trintiy-4shrecommend");
        
        browser.setUp();
        browser.testRun();
        browser.lpDetect();
        browser.verFilePresent();
        browser.verFilename();
    }

    @AfterMethod
    public void Down() throws Exception {
        browser.getDriver().quit();

    }

}
